package com.calvin.study.strategy.spring.concrete;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.calvin.study.strategy.spring.service.WaimaiService;
import com.calvin.study.strategy.strategy.AbstractStrategy;
import com.calvin.study.strategy.strategy.Strategy;

//外卖策略
@Component
public class Waimai extends AbstractStrategy implements Strategy {


	@Autowired private WaimaiService waimaiService;

	@Override
	public void issue(Object... params) {
		// 调用WaimaiService
		waimaiService.issueWaimai();
	}

}
